package com.yh.controller;

import com.yh.service.CityDubboConsumerService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created on 2021-01-22-9:44
 *
 * @author yh
 */
@RestController
public class DubboController {
    @Resource
    CityDubboConsumerService cityDubboConsumerService;
    @RequestMapping("/")
    public Object test(){
        cityDubboConsumerService.printCity();
        return "测试dubbo服务的调用...";
    }
}
